import matplotlib.pyplot as plt
import networkx as nx

def drawG(nodelist, edgelist, loc, filename):
    G = nx.Graph()
    G.add_nodes_from(nodelist)
    G.add_edges_from(edgelist)
    nx.draw(G, loc)
    plt.savefig(filename)
    plt.clf()

if __name__ == "__main__":
   # drawG()
    h = nx.bull_graph()
    g = nx.convert_node_labels_to_integers(h)
    print g
    
